/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.domain.user.repository;

import com.lap.auth.domain.user.valueobject.UserRole;

import java.util.List;
import java.util.Optional;
import java.util.Set;

/**
 * 管理员和角色关系仓储接口
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
public interface UserRoleRepository {

  void saveAll(Integer userId, Set<Integer> roleIds);

  void deleteByUserId(Integer userId);

  List<Integer> findByUserId(Integer userId);
}
